/*
        Tree protocol definition file
*/
const   MAXP  = 4096;   /* Upper limit on packet size it 8K.              */
const   DELIM = "\n";   /* To separate each directory entry.              */
const   INDENT= 5;      /* # of spaces to indent for one level.           */
const   DIR_1 = 128;    /* Maximum length of any one directory entry.     */
 
typedef char line[MAXP];/* A large storage location for all the entries.  */
typedef line *line_ptr; /* A reference to the storage location.           */
                        /* If no errors return reference else return void */
union dir_result
  switch( int errno ) {
  case 0:
      line *line_ptr;
  default:
      void;
};                                                                      
/*
 *   The do_dir procedure will take a reference to a directory and return
 *   a reference to an array containing the directory tree.
 */
program TREE {
  version one{
     dir_result do_dir( string ) = 1;
  } = 1;
} = 0x2000001;
